﻿<!--帖子页面body标签中的内容-->

<script>
	function setPageNumCount(page_num_count) 
	{
		var element=document.getElementById("page_num_count");
		element.innerHTML=page_num_count;
	}
    /*
	function setLouzhuBody(louzhu_body) 
	{
		var element=document.getElementById("louzhu_body");
        showLouzhuBody("true");
		element.innerHTML=louzhu_body;
	}
     */
    
    function hideNotLouzhu()
    {   
        var objs=document.getElementsByName("not_louzhu");   
        for(i=0;i<objs.length;i++)
        {    
			objs[i].style.display="none";
        }   
        
        showLouzhuOnly=true;
    }   
    
    function showNotLouzhu()
    {   
        var objs=document.getElementsByName("not_louzhu");   
        for(i=0;i<objs.length;i++)
        {     
			objs[i].style.display="block";
        }   
        
        showLouzhuOnly=false;
    } 
    
    /*
	//设置帖相关信息，从回复的列表进来的帖子使用这个函数，在请求的第一页内容成功后，重新设置这些内容
	function setNoteInfo(louzhu_userid,louzhu_username,louzhu_datetime,title,hot_count,comment_count)
	{
		var element=document.getElementById("louzhu_username");
		element.innerHTML=louzhu_username;
        element.attributes["userid"].nodeValue=louzhu_userid;
        element.attributes["username"].nodeValue=louzhu_username;
        
        element=document.getElementById("louzhu_head_logo");
        element.attributes["userid"].nodeValue=louzhu_userid;
        element.attributes["username"].nodeValue=louzhu_username;
		
		var element2=document.getElementById("louzhu_datetime");
		element2.innerHTML=louzhu_datetime;
		
		element=document.getElementById("title");
		element.innerHTML=title;
		
		element=document.getElementById("hot_count");
		element.innerHTML=hot_count;
		
		element=document.getElementById("comment_count");
		element.innerHTML=comment_count;
	}
    */
    /*
    //更新设置楼主头像，暂未使用
    function setHeadLogo(head_logo_src,head_logo_name)
    {
        var element=document.getElementById("louzhu_head_logo");
		element.src=head_logo_src;
        element.name=head_logo_name;      
    }
     */
</script>

<div id="wrap-0329"><!--id="wrap-0329" 在css中有对它设置style-->	
    <div class="groundInfo-0329 floor-0329 noCt" id="louzhu_div" style="float:left;width:90%;"> <!--width:90%; 解决title较短时，下面的内容跟上来的问题-->
        
        <div class="title-0329 ww-bw" id="title">$title$
            <!-- 页码在标题后面或单独一行 -->
            <div style="line-height:25px;text-align:right;font-size:13px;float:right;" id="page_num_count">$page_num_count$</div>
        </div> 
        
        <!-- 页码单独一行
        <div style="line-height: 22px;text-align:right;font-size:13px;" id="page_num_count" style="float:right;">$page_num_count$</div>
         -->
        
    </div>
	
    <div class="groundInfo-0329 floor-0329">
        <p class="ctrl-0329 cf">
            <span>$username$</span>
            <span style="margin-left:5px;">$datetime$</span>
            <span style="float:right;">
                    <img src="hot_icon.png" style="padding:0px 0 0 0;vertical-align:middle;" >
                    <span id="hot_count" >$hot_count$</span>  
                    <!--
                     <img src="reply_icon.png" style="margin-left:5px;vertical-align:middle;">
                     <span id="comment_count">$comment_count$</span>
                     -->
            </span>
        </p>
        
        <div class="ct-0329 ww-bw" id="louzhu_body">$louzhu_body$</div>
    </div>
    
    <div id="storeyes">$storeyes$</div>
	
</div>    


<!--楼主层下边有一条线-->
<script>
    function showLouzhuBottomLine(show) //true block,  false none
	{
		var element=document.getElementById("louzhu_body");
		element.style.display= show=="true"?"block":"none";
        
        element=document.getElementById("louzhu_div");
        if(show=="true")
        {
            element.className="groundInfo-0329 floor-0329";
        }
        else
        {
            element.className="groundInfo-0329 floor-0329 noCt";
        }
	}
    
    var element=document.getElementById("louzhu_body");
    var show=element.innerHTML.length>0?"true":"false";
    showLouzhuBottomLine(show);
</script>